package com.comp.service.impl;

import com.comp.dao.jdbc.Table2Mapper;
import com.comp.pojo.Table2;
import com.comp.service.Table2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Table2ServiceImpl implements Table2Service {

    @Autowired
    private Table2Mapper table2Mapper;

    @Override
    public List findAll() {
        return table2Mapper.selectByExample(null);
    }

    @Override
    public int insertTable2(Table2 table2) {
        return table2Mapper.insertSelective(table2);
    }
}
